package net.huashitong.ssydt.provider.task.service;


import net.huashitong.ssydt.PaginationResult;
import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.provider.task.dto.CardBagDTO;
import net.huashitong.ssydt.security.utils.Result;
import net.huashitong.ssydt.task.entity.SsTaskCard;
import net.huashitong.ssydt.task.vo.CardBagInVO;
import net.huashitong.ssydt.task.vo.SsTaskCardQueryVO;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.01.10
 */
public interface SsTaskCardService extends LongService<SsTaskCard> {
    List<CardBagDTO> queryGroupByYearsWithMonths(CardBagInVO inVO);

    int countAll();

    List<SsTaskCard> findByYearMonths(String yearMonths);

    SsTaskCard getByQuestionId(Long questionId);

    List<SsTaskCard> findByIdInList(List<Long> ids);

    PaginationResult<SsTaskCard> list(SsTaskCardQueryVO queryVO);

    Result<String> saveWithUpdateQuestionCard(SsTaskCard record);

    Result<String> updateWithUpdateQuestionCard(SsTaskCard record);

    Result<String> deleteWithUpdateQuestionCard(Long id);
}
